package com.woniu.stafforder;


import com.woniu.stafforder.netty.NettyServerComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * netty服务器,用于sdp信令交换(点对点通信)
 * a-b offer b-a answer a-b candidate b-a candidate a-b stream b-a stream
 * b-a offer a-b answer b-a candidate a-b candidate b-a stream a-b stream
 */
@SpringBootApplication
public class CallApplication implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(CallApplication.class);
    }
    @Autowired
    private NettyServerComponent component;
    @Override
    public void run(String... args) throws Exception {
        component.startServer();
    }
}
